package cn.qihua.model;

import java.sql.Timestamp;

import org.apache.struts2.json.annotations.JSON;

/**
 * LogProduct entity. @author MyEclipse Persistence Tools
 */

public class LogProduct implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 2545271755445723725L;
	private Integer id;
	private Integer nbid;
	private Integer productId;
	private Integer userId;
	private String memo;
	private Timestamp inDate;
	private Boolean isNew;

	// Constructors

	/** default constructor */
	public LogProduct() {
	}

	/** full constructor */
	public LogProduct(Integer nbid, Integer productId, Integer userId,
			String memo, Timestamp inDate, Boolean isNew) {
		this.nbid = nbid;
		this.productId = productId;
		this.userId = userId;
		this.memo = memo;
		this.inDate = inDate;
		this.isNew = isNew;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getNbid() {
		return this.nbid;
	}

	public void setNbid(Integer nbid) {
		this.nbid = nbid;
	}

	public Integer getProductId() {
		return this.productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}
	@JSON(format = "yyyy-MM-dd HH:mm:ss")
	public Timestamp getInDate() {
		return this.inDate;
	}

	public void setInDate(Timestamp inDate) {
		this.inDate = inDate;
	}

	public Boolean getIsNew() {
		return this.isNew;
	}

	public void setIsNew(Boolean isNew) {
		this.isNew = isNew;
	}

}